
var input1 = document.querySelector('.one').querySelector('input');
var input2 = document.querySelector('.two').querySelector('input');
var deng = document.querySelector('.dl').querySelector('input');
function check() {
    undefined
    if (input1.value == '' || input2.value == '') {

        alert('请输入正确的账号密码')
        return false;
    }
    else {
        undefined;
        alert('欢迎登录');
        return true;
    }
}

var bg = document.querySelector('.login-bg');
var a = document.querySelector('.login').querySelector('a');
var input3 = document.querySelector('.three').querySelector('input');
var input4 = document.querySelector('.four').querySelector('input');
var deng = document.querySelector('.zce').querySelector('input');
var as = document.querySelector('.zcelan').querySelector('a');
var zcelan = document.querySelector('.zcelan');
function ck() {
    undefined;
    if (input3.value == '' || input4.value == '') {
        alert('请输入正确的账号密码');
        return false;
    } else {
        undefined;
        alert('欢迎注册');
        return true;
    }
}
a.addEventListener('click', function () {
    bg.style.display = 'none';
    zcelan.style.display = 'block';
})
as.addEventListener('click', function () {
    zcelan.style.display = 'none';
})
/* <!--拖动状态栏--> */


    var bg = document.querySelector('.login-bg');
    var login = document.querySelector('.login');
    var btn = document.querySelector('.btn');
    var closeBtn = document.querySelector('.login').querySelector('img');
    btn.addEventListener('click', function () {
        login.style.display = 'block';
        bg.style.display = 'block';
    })
    closeBtn.addEventListener('click', function () {
        login.style.display = 'none';
        bg.style.display = 'none';
    })
    var title = document.querySelector('.title')
    title.addEventListener('mousedown', function (e) {
        var x = e.pageX - login.offsetLeft;
        var y = e.pageY - login.offsetTop;
        document.addEventListener('mousemove', move)
        function move(e) {
            login.style.left = e.pageX - x + 'px';
            login.style.top = e.pageY - y + 'px'
        }
        document.addEventListener('mouseup', function () {
            document.removeEventListener('mousemove', move)
        })
    })
